/**
 * @File   os_debug.h
 * @Berif  debug输出函数重定义
 * @Encode UTF-8
 * @Log    Date         Author     Notes
 *         2021.01.30   Jimmy      first version
 */
#ifndef  __OS_DEBUG_H
#define  __OS_DEBUG_H


#include "rtthread.h"
#include "stm32f407xx.h"
#include "rtdbg.h"

#define OS_RUN_DEBUG_MODE         (1)


#if (OS_RUN_DEBUG_MODE == 1)
  #define log_o                rt_kprintf
  #define log_e(fmt, ...)      dbg_log_line("Err", 31, fmt, ##__VA_ARGS__)
#else
  #define log_o(...)
  #define log_e(...)
#endif

#endif  /* __OS_DEBUG_H */
/* End of file */
